/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.BalanceEmployeeDao;
import com.click.app.model.BalanceEmployee;
import com.click.app.model.Employee;
import com.click.app.service.BalanceEmployeeManager;
import java.util.List;

/**
 *
 * @author ariel
 */
public class BalanceEmployeeManagerImpl extends GenericManagerImpl<BalanceEmployee, Long> implements BalanceEmployeeManager {

    BalanceEmployeeDao balanceEmployeeDao;

    public BalanceEmployeeManagerImpl(BalanceEmployeeDao balanceEmployeeDao) {
        super(balanceEmployeeDao);
        this.balanceEmployeeDao = balanceEmployeeDao;
    }

    public List<BalanceEmployee> findByEmployee(Employee employee){
        return balanceEmployeeDao.findByEmployee(employee);
    }

    public BalanceEmployee lastBalance(Employee employee) {
        return balanceEmployeeDao.lastBalance(employee);
    }

    public BalanceEmployee beforeLastBalance(Employee employee) {
        return balanceEmployeeDao.beforeLastBalance(employee);
    }

}
